-- GENERATED SPELL FOR [Champion of Sseratus] --


function spell0_28036(pUnit, Event) --@Blood of Sseratus,Self--
pUnit:FullCastSpellOnTarget(54482,pUnit)
pUnit:RegisterEvent('Sorts_28036', 558, 1)
end

function spell1_28036(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28036', 606, 1)
end

function Sorts_28036(pUnit, Event)
local choix_sorts_28036 = math.random(0, 1)
if choix_sorts_28036 == 0 then
pUnit:RegisterEvent('spell0_28036', 1, 1)
end
if choix_sorts_28036 == 1 then
pUnit:RegisterEvent('spell1_28036', 1, 1)
end
end

function mob28036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28036', math.random(1500, 3000), 1)
end

function mob28036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28036, 1, 'mob28036_Action')
RegisterUnitEvent(28036, 2, 'mob28036_Leave')
RegisterUnitEvent(28036, 3, 'mob28036_Kill')
RegisterUnitEvent(28036, 4, 'mob28036_Die')
